home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / csltest.c < prev    next >
Text File  |  1986-05-28  |  571b  |  34 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6. main()
  7. {
  8.     int i;
  9.  
  10.  
  11.     InitGraphic();                /* init the system and screen    */
  12.     DefineWorld(1, 0., 0., 1000., 1000.);
  13.     SelectWorld(1);
  14.     SelectWindow(1);
  15.     SetBackground(0x11);
  16.     DrawBorder();
  17.  
  18.     for (i = 1; i <= 20; i++)
  19.         DrawLine(50.*i, 0., 1000.-50.*i, 50.*i);
  20.  
  21.     SaveScreen("picture.pic");
  22.     inkey();
  23.  
  24.     InvertScreen();
  25.     inkey();
  26.  
  27.     LoadScreen("picture.pic");
  28.     inkey();
  29.  
  30.     LeaveGraphic();
  31. }
  32.  
  33.  
  34.